
<div id="preject">
    <form style="margin-top: 10px" method="post" id="stu_search">
        <input type="search" name="search" placeholder="请输入搜索关键词">
        <input value="搜索" type="submit">
        <select  name="uid" onchange="setText()">
            <option>项目选择</option>
            {foreach $preject as $v}
            <option value="{$v.id}">{$v.title}</option>
            {/foreach}
        </select>
        {present name="$uid"}
        <button class="button" ><a  href="{:url('excelperson')}?uid={$uid}">导出</a></button>
        {/present}
    </form>

    {present name="$person"}

    <div style="margin-top: 20px" id="table">
        <table>
            <tr><th>序号</th> <th>项目名</th> <th>姓名</th> <th>学号</th>  <th>系部</th> <th>班级</th> <th>邮箱</th>  <th>手机</th>   <th>报名时间</th>   </tr>
            {foreach $person as $k=>$v}
            <tr><td>{$person->currentPage()*30-30+$k+1}</td> <td>{$v.preject}</td> <td>{$v.name}</td> <td>{$v.stuid}</td>   <td>{$v.apartment}</td> <td>{$v.class}</td> <td>{$v.email}</td>  <td>{$v.phone}</td>  <td>{$v.time}</td> <td></td></tr>
            {/foreach}
        </table>
    </div>
    <div id="page">{$person}</div>
    {else /}
    <div id="table" style="margin-top: 20px">
        <table>
            <tr><th>序号</th> <th>项目名</th> <th>姓名</th> <th>学号</th>  <th>系部</th> <th>班级</th> <th>邮箱</th>  <th>手机</th>   <th>报名时间</th> </tr>
        </table>
    </div>
    {/present}
</div>
<script>
    function setText() {
        $("form").submit();
    }
</script>